﻿<!DOCTYPE>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>	
<%
	String path = request.getContextPath();
	//获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	pageContext.setAttribute("basePath", basePath);
	pageContext.setAttribute("path", path);
%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="${basePath}css/style.css" />
<script type="text/javascript" src="${basePath}js/jquery-3.2.1.js"></script>
<title>招聘信息</title>
<meta content="description" name="description">
<meta content="keywords" name="keywords">
</head>
<body>
	<div id="body">
		<%@include file="../header.jsp"%>
		<!-- end #header -->
		<div id="container">
			<div class="clearfix">
				<div class="content_l">
					<dl class="job_detail">
						<dt>
							<h1 title="${requestScope.tri.positionDesc}">
								<em></em>
								<div></div>
								${requestScope.tri.positionDesc}
							</h1>


						</dt>
						<dd class="job_request">
							<span class="red">${requestScope.tri.salaryMin}k-${requestScope.tri.salaryMax}k</span>
							<span>${requestScope.tri.workCity}</span> <span>${requestScope.tri.demandExpDesc}</span><br />
							<span>学历：${requestScope.tri.educationalBackgroundDesc}</span> <br />${requestScope.tri.benefits}
							<div id="publistTime">发布时间：<fmt:formatDate value="${requestScope.tri.publishTime}" pattern="yyyy-MM-dd"/></div>
						</dd>
						<dd class="job_bt">
							<h3 class="description">职位描述</h3>
							<p>${requestScope.tri.description}</p>
						</dd>


						<dd>
							<a href="javascript:application('${requestScope.tri.riId}');" title="投个简历" class="inline btn fr btn_apply">投个简历</a>
						</dd>
					</dl>
					<div id="weibolist"></div>
				</div>
				<div class="content_r">
					<dl class="job_company">
						<dt>
							<a href="#" target="_blank">
								<div>
									<h2 class="fl">
										${requestScope.company.companyName}</span>
									</h2>
								</div>
							</a>
						</dt>
						<dd>
							<ul class="c_feature reset">
								<li><span>领域</span>${requestScope.company.industy}</li>
								<li><span>规模</span>${requestScope.company.scale}</li>
							</ul>



							<h4>工作地址</h4>
							<div>${requestScope.company.city}</div>
							<div id="smallmap"></div>

						</dd>
					</dl>
				</div>
			</div>

<script>
	$(function() {

	})
function application(id){
	$.ajax({
		type : 'post',
		url : '${basePath}user/application/' + id,
		dataType : "json",
		data : {
			
		},
		success : function(result) {
			var model = result.model;
			console.log("提交成功");
			if (model.code == 0) {
				console.log(model.msg);
				alert("投递成功");
			}else{
				console.log(model.msg);
				alert(model.msg);
			}
		},
		error : function(){
			alert("系统异常");
		}
	});
}
</script>
</body>
</html>